home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 138
/
Volume 138 Aug 19 2011 - Damaged.iso
/
Games
/
shadez.swf
/
scripts
/
Local
/
External
/
CMochiBot.as
< prev
next >
Wrap
Text File
|
2011-08-19
|
7KB
|
255 lines
package Local.External
{
import flash.display.DisplayObject;
import flash.display.Loader;
import flash.display.Sprite;
import flash.events.Event;
import flash.events.IOErrorEvent;
import flash.net.URLRequest;
import flash.net.URLRequestMethod;
import flash.net.URLVariables;
import flash.system.Capabilities;
import flash.system.Security;
public dynamic class CMochiBot extends Sprite
{
public static function SHZ_BO_SHADEZWEBSITE_VISIT():*
{
Track("687d8c08");
}
public static function SHZ_BO_SPONSORVISIT_LEVELSELECTION():*
{
SHZ_BO_SPONSORVISIT_TOTAL();
Track("44e9c657");
}
public static function SHZ_BO_UNIQUES():*
{
Track("6d4f3ba4");
}
public static var mPending:Boolean = false;
public static function SHZ_BO_LEVELSPLAYED():*
{
Track("e904578e");
}
private static var mStack:Array;
public static function SHZ_BO_VISITS():*
{
Track("d1b4e487");
}
public static function SHZ_BO_SPONSORVISIT_MAIN():*
{
SHZ_BO_SPONSORVISIT_TOTAL();
Track("e62648e8");
}
public static function SHZ_BO_LEVELPLAY_1():*
{
SHZ_BO_LEVELSPLAYED();
Track("2f3329ce");
}
public static function SHZ_BO_LEVELPLAY_2():*
{
SHZ_BO_LEVELSPLAYED();
Track("0216f37e");
}
public static function SHZ_BO_LEVELPLAY_3():*
{
SHZ_BO_LEVELSPLAYED();
Track("0e03b60e");
}
public static function SHZ_BO_LEVELPLAY_4():*
{
SHZ_BO_LEVELSPLAYED();
Track("2790667b");
}
public static function SHZ_BO_GAMEGUIDE_VISIT():*
{
SHZ_BO_SPONSORVISIT_TOTAL();
Track("7241b30f");
}
public static function SHZ_BO_SPONSORVISIT_DEBRIEF():*
{
SHZ_BO_SPONSORVISIT_TOTAL();
Track("7750b6d3");
}
public static function SHZ_BO_ADSDISPLAYED():*
{
Track("cc77eee5");
}
public static function SHZ_BO_TRAILER_VISIT():*
{
SHZ_BO_SPONSORVISIT_TOTAL();
Track("f0eace5a");
}
public static function SHZ_BO_SPONSORVISIT_TOTAL():*
{
Track("7293a1f0");
}
public static var mRoot:DisplayObject;
public static function SHZ_BO_ENCRYPTIONVISIT():*
{
Track("b7dc2c5d");
}
public static function SHZ_BO_HISCOREVIEWS():*
{
Track("c9d383f7");
}
public static function SHZ_BO_HISCOREPOSTED():*
{
Track("0d5a2988");
}
public static function SHZ_BO_MOCHIBOTVISIT():*
{
Track("39097efa");
}
public static function SHZ_BO_GAMESWEBSITE_VISIT():*
{
Track("1097373f");
}
private var mLoader:Loader;
private var mTag:String;
private var mReq:URLRequest;
public function CMochiBot()
{
super();
}
private static function e_IOERROR(param1:IOErrorEvent) : void
{
if(true)
{
mPending = false;
NextInStack();
}
}
public static function Track(param1:String) : void
{
var _loc2_:CMochiBot = null;
var _loc3_:String = null;
var _loc4_:URLVariables = null;
var _loc5_:String = null;
var _loc6_:URLRequest = null;
var _loc7_:Loader = null;
if(Security.sandboxType == "localWithFile")
{
return;
}
if(param1 == null)
{
return;
}
_loc2_ = new CMochiBot();
Security.allowDomain("*");
Security.allowInsecureDomain("*");
_loc3_ = "http://core.mochibot.com/my/core.swf";
(_loc4_ = new URLVariables())["sb"] = Security.sandboxType;
_loc4_["v"] = Capabilities.version;
_loc4_["swfid"] = param1;
_loc4_["mv"] = "8";
_loc4_["fv"] = "9";
_loc5_ = mRoot.loaderInfo.loaderURL;
_loc4_["url"] = _loc5_.indexOf("http") == 0 ? _loc5_ : "local";
(_loc6_ = new URLRequest(_loc3_)).contentType = "application/x-www-form-urlencoded";
if(true)
{
_loc6_.method = URLRequestMethod.POST;
_loc6_.data = _loc4_;
}
_loc7_ = new Loader();
if(true)
{
_loc2_.mTag = param1;
if(true)
{
_loc2_.mLoader = _loc7_;
_loc2_.mReq = _loc6_;
}
Stack(_loc2_);
}
}
private static function NextInStack() : void
{
var _loc1_:CMochiBot = null;
if(!mStack.length)
{
return;
}
_loc1_ = mStack.shift();
if(true)
{
_loc1_.addChild(_loc1_.mLoader);
if(true)
{
_loc1_.mLoader.load(_loc1_.mReq);
if(true)
{
mPending = true;
}
_loc1_.mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,e_COMPLETE);
}
_loc1_.mLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,e_IOERROR);
}
}
private static function e_COMPLETE(param1:Event) : void
{
mPending = false;
NextInStack();
}
private static function Stack(param1:CMochiBot) : void
{
if(true)
{
§§push(!mStack);
if(!!mStack)
{
§§pop();
if(true)
{
addr28:
if(!mStack.length)
{
if(true)
{
mStack = [param1];
if(mPending)
{
}
addr50:
return;
addr46:
}
NextInStack();
}
else
{
mStack.push(param1);
§§goto(addr50);
}
§§goto(addr50);
}
§§goto(addr46);
}
§§goto(addr28);
}
§§goto(addr50);
}
public static function ActivateTracking(param1:DisplayObject) : void
{
mRoot = param1;
SHZ_BO_VISITS();
}
}
}